<!DOCTYPE html>
<html>
	<?php echo $head; ?>
	<body>
		<!-- Home -->
		<div data-role="page" data-theme="a">
			<div data-theme="b" data-role="header" data-id="head" data-position="fixed">
				<a data-role="button" data-direction="reverse" data-transition="flow" href="<?php echo site_url(); ?>" data-icon="home" data-iconpos="left" class="ui-btn-left">
					Home
				</a>
				<a data-role="button" data-icon="map-marker" data-iconpos="right" href="<?php echo site_url('stasiun/mapview'); ?>" class="ui-btn-right">
					Map
				</a>
				<h3>
					Melihat Informasi Stasiun
				</h3>
			</div>
			<div data-role="content" data-theme="a">
				<ul data-role="listview" data-divider-theme="a" data-inset="true" data-autodividers="true" data-filter="true" data-filter-placeholder="Cari stasiun...">
					<?php if($table != NULL): ?>
					<?php foreach($table as $row): ?>
					<li><a href="<?php echo site_url('stasiun/detail').'?id='.$row->id; ?>" data-transition="flow"><?php echo $row->Nama_Stasiun; ?></a></li>
					<?php endforeach; ?>
					<?php else: ?>
					<li data-theme="a" data-role="fieldcontain">
						<h3>Data tidak ditemukan</h3>
					</li>
					<?php endif; ?>
				</ul>
			</div>
			<?php echo $foot;?>
		</div>
		<script>
			//App custom javascript
		</script>
	</body>
</html>
